package net.esj.auth.inst.struts2;

import java.util.Date;

import net.esj.auth.inst.struts2.AdminAction.CoreSimpleAdmin;
import net.esj.auth.pojo.CoreAdminLog;
import net.esj.basic.core.view.support.vojo.BaseVojo;
import net.esj.basic.core.view.support.vojo.TransObject;
import net.esj.auth.inst.struts2.LogAction.CoreAdminLogSimple;

public class LogAction extends AbstractAuthAction<CoreAdminLog, CoreAdminLogSimple> {

	protected void extraQuery(){
		pagination.getQueryBuilder().fetch("admin");
	}
	
	public static class CoreAdminLogSimple implements BaseVojo<String>,TransObject{
		private String id;
		private CoreSimpleAdmin admin;
		private String logger;
		private String comments;
		private Date gmtCreate;
		public String getId() {
			return id;
		}
		public void setId(String id) {
			this.id = id;
		}
		public CoreSimpleAdmin getAdmin() {
			return admin;
		}
		public void setAdmin(CoreSimpleAdmin admin) {
			this.admin = admin;
		}
		public String getLogger() {
			return logger;
		}
		public void setLogger(String logger) {
			this.logger = logger;
		}
		public String getComments() {
			return comments;
		}
		public void setComments(String comments) {
			this.comments = comments;
		}
		public Date getGmtCreate() {
			return gmtCreate;
		}
		public void setGmtCreate(Date gmtCreate) {
			this.gmtCreate = gmtCreate;
		}
		
		
	}
}
